#pragma once
#include <iostream>
#include <cassert>

using namespace std;
class Stack
{
public:
    void Init(int n = 4);
    void Destroy();
    void Push(int x)
    {
        array[top++] = x;
    }
    int Top();
private:
    int* array;
    size_t capacity;
    size_t top;
};
